import request from '@/utils/request'

// 查询备案订单列表
export function listRecord(query) {
  return request({
    url: '/manage/record/list',
    method: 'get',
    params: query
  })
}

// 查询备案订单详细
export function getRecord(recordId) {
  return request({
    url: '/manage/record/' + recordId,
    method: 'get'
  })
}

// 新增备案订单
export function addRecord(data) {
  return request({
    url: '/manage/record',
    method: 'post',
    data: data
  })
}



// 修改备案订单
export function updateRecord(data) {
  return request({
    url: '/manage/record',
    method: 'put',
    data: data
  })
}

// 删除备案订单
export function delRecord(recordId) {
  return request({
    url: '/manage/record/' + recordId,
    method: 'delete'
  })
}


// 拉取备案订单
export function pullRecoed(data) {
  return request({
    url: '/manage/record/pull',
    method: 'post',
    data: data
  })
}


// 统计每天备案数量
export function managerecordcounteveryday(data) {
  return request({
    url: '/manage/record/count/everyday',
    method: 'get',
    params: data
  })
}

